# Contributor: Peter Baldwin <bald_pete@hotmail.com>

pkgname=mpgtx
pkgver=1.3.1
pkgrel=7
pkgdesc="A command line MPEG audio/video/system toolkit"
arch=('loong64' 'x86_64')
url="http://mpgtx.sourceforge.net"
license=('GPL')
depends=('gcc-libs')
source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
sha512sums=('0f568673811f709383b3f262b19d3ec69de6807671c05a98266b21f2bfa6a8b85d2a8b95c3cec38bb012afb9d8add19a3f38b74b3e90f66cf233a1d26aaca805')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX="$pkgdir/usr" manprefix="${pkgdir}/usr/share" install
}
